package cate.common.table.activity.accumulativepay.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class AccumulativePayBaseRow extends ERow {
    public int group;
    private String gameids;
    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("id");
        this.group = xrw.getInteger("奖励分组");
        this.gameids = xrw.getString("gameid");
    }
    public List<String> gameIds;
    @Override
    public void decode(){
        gameIds = new ArrayList<>();
        if (StringUtils.isNotBlank(gameids)) {
            gameIds.addAll(Arrays.asList(gameids.split("#")));
        }
    }
}
